package com.example.webcomen.Model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.sql.Date;

@Data
@TableName("t_user")
public class User {
    @TableId
    private Integer id;
    private String username;
    private String sign;
    private String  status;
    private String email;
    private String avatar;
    private Integer sex;
    private String  active;
    @TableField("create_date")
    private Date CreateDate;
    private String password;

    public User(Integer id) {
        this.id = id;
    }
    public User() {
    }

    public User(Integer id, String username, String sign, String status, String email, String avatar, Integer sex, String active, Date createDate, String password) {
        this.id = id;
        this.username = username;
        this.sign = sign;
        this.status = status;
        this.email = email;
        this.avatar = avatar;
        this.sex = sex;
        this.active = active;
        CreateDate = createDate;
        this.password = password;
    }
}
